//
//  PickNumDaLeTouViewController.h
//  PlayBall
//
//  Created by Edward Zhang on 12-5-10.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "JddBaseViewController.h"
#import "JddQueryDigitalLotteryIssueOperation.h"
#import "JddLotteryIssue.h"
#import "JddRandomSelectNumView.h"
#import "JddDaletouNumber.h"
#import <AudioToolbox/AudioToolbox.h>
#import <AVFoundation/AVFoundation.h>
#import "JddIndexListView.h"


@interface JddPickNumDaLeTouViewController : JddBaseViewController<UITabBarDelegate, QueryDigitalLotteryIssueOperationDelegate,IndexListViewDelegate, RandomSelectNumViewDelegate, UIAccelerometerDelegate,UIAlertViewDelegate>{
@private
    NSTimer      *countDownTimer;
    NSDate       *endTime;
    NSDate       *currentTime;
    JddRandomSelectNumView *randomSelectNumberDialog;
    JddDaletouNumber   *lotteryNumber;
    JddIndexListView   *indexList;
    
    NSMutableArray      *lotteryNumberArray;
    BOOL sharked;
    BOOL          *querystate;
}

@property (strong, nonatomic) IBOutlet UILabel *issueCodeLabel;
@property (strong, nonatomic) IBOutlet UILabel *remainTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *countlabel;
@property (strong, nonatomic) IBOutlet UILabel *moneylabel;

@property (strong, nonatomic) JddLotteryIssue *currentLotteryIssue;

SHARED_VIEW_CONTROLLER_DECLARE(JddPickNumDaLeTouViewController);

- (IBAction)numberButtonClicked:(id)sender;
- (IBAction)randomSelectRedBall:(id)sender;
- (IBAction)randomSelectBlueBall:(id)sender;
-(IBAction)randomSelect:(id)sender;
-(IBAction)clearSelect:(id)sender;
-(IBAction)sureSelect:(id)sender;
-(void)destoryView;
@end
